package vn.com.bookstore.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import vn.com.bookstore.dao.SupportNewsDao;
import vn.com.bookstore.domain.model.SupportNews;

@Service
public class SupportNewsServiceImpl implements SupportNewsService {

	@Autowired
	private SupportNewsDao supportNewsDao;
	
	@Override
	public List<SupportNews> getAllSupportNews() {
		return supportNewsDao.getAllSupportNews();
	}

	@Override
	public SupportNews getSupportNewsById(int id) {
		return supportNewsDao.getSupportNewsById(id);
	}

}
